<?php 
/* SVN FILE: $Id$ */
/* Item Test cases generated on: 2009-10-22 16:26:31 : 1256228791*/
App::import('Model', 'Item');

class ItemTestCase extends CakeTestCase {
	var $Item = null;
	var $fixtures = array('app.item');

	function startTest() {
		$this->Item =& ClassRegistry::init('Item');
	}

	function testItemInstance() {
		$this->assertTrue(is_a($this->Item, 'Item'));
	}

	function testItemFind() {
		$this->Item->recursive = -1;
		$results = $this->Item->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Item' => array(
			'id'  => 1,
			'nome'  => 'Lorem ipsum dolor ',
			'descricao'  => 'Lorem ipsum dolor sit amet',
			'quantidade'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>